const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    m_list:[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this
    wx.getStorage({
      key: 'openid',
      success: function(res) {
        let openid = res.data

        wx.request({
          url: app.globalData.URL + '/app/sysmsg/index?openid='+openid,
          success: function (res) {
            that.setData({
              m_list: res.data.list
            })
          }
        })
      },
    })
    
  },

  
})